import {getData, sendData} from "./http";

//查询用户
export const selectUser = (data) =>sendData('/webserver/user/selectUser',data);

//登录
export const login = (data) =>sendData(`/authserver/login/login`,data);

//注册
export const register = (data) =>sendData(`/webserver/user/register`,data);

//退出登录
export const logout = (data)=> getData('/webserver/user/logout',data);

//注册发送邮箱
export const sendMail = (data)=>sendData('/webserver/user/verifyCode',data);

//忘记密码发送邮箱
export const forgetPwdCode = (data) =>sendData('/webserver/user/forgetPwdCode',data);

//忘记密码
export const forgetPwd = (data) =>sendData('/webserver/user/forgetPwd',data);

//更换密码发送邮箱
export const sendChangePwdCode = (data) =>sendData('/webserver/user/changePwdCode', data);

//更换密码
export const changePwd = (data) =>sendData('/webserver/user/changePwd',data);

//修改信息
export const changeInfo = (data) =>sendData('/webserver/user/changeInfo',data);

//头像上传
export const updateAvatar = (data) =>sendData(`/webserver/user/updateAvatar`,data);

//查询头像
export const selectUserImg = (data) =>sendData(`/webserver/user/selectUserImg`, data);

export const sendSmsCode = (data) =>sendData(`/smsserver/sms/sendCode`,data)
